package com.game.gameshoppingcenter.service;

import com.game.gameshoppingcenter.dao.GamesRepository;
import com.game.gameshoppingcenter.entities.Games;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class GamesService {
    @Autowired
    GamesRepository gamesRepository;
    public List<Games>tobuy(){
        return gamesRepository.findByGamesId();
    }
    public List<Games>tobuy1(){
        return gamesRepository.findByGamesId1();
    }
    public List<Games>tobuy2(){
        return gamesRepository.findByGamesId2();
    }
    public List<Games>tobuy3(){
        return gamesRepository.findByGamesId3();
    }
    public List<Games>tobuy4(){
        return gamesRepository.findByGamesId4();
    }
    public List<Games>tobuy5(){
        return gamesRepository.findByGamesId5();
    }
}
